From: Sebastian Keller Date: Thu, 25 Feb 2021 23:00:06 +0000 (+0100) Subject: ctrlAltTab: Fix usage of bind_cairo_surface_property X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~161 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b8533164989dbdd1a43c3e30de9492a60d736b9c;p=gnome-shell.git ctrlAltTab: Fix usage of bind_cairo_surface_property This updates the use of bind_cairo_surface_property for the changes from d7cb2eeebc. Now this function returns a StImageContent and not an Actor like the following code expects, so wrap it in a StIcon. Also the function lost its size argument. Part-of: --- diff --git a/js/ui/ctrlAltTab.js b/js/ui/ctrlAltTab.js index 46c2a7bf0..fbc7a0f5f 100644 --- a/js/ui/ctrlAltTab.js +++ b/js/ui/ctrlAltTab.js @@ -93,9 +93,10 @@ var CtrlAltTabManager = class CtrlAltTabManager { if (app) { icon = app.create_icon_texture(POPUP_APPICON_SIZE); } else { - icon = textureCache.bind_cairo_surface_property(windows[i], - 'icon', - POPUP_APPICON_SIZE); + icon = new St.Icon({ + gicon: textureCache.bind_cairo_surface_property(windows[i], 'icon'), + icon_size: POPUP_APPICON_SIZE, + }); } }